public class trans {
    public static void main(String[] args) {
        int[] Array ={1,2,3};
        transfrom(Array);
        for(int num : Array){
            System.out.println(num);
        }
    }
    public static void transfrom(int[] arr){
        for(int i=0;i<arr.length;i++){
            arr[i]=arr[i]*2;
        }
    }
}
